package com.example.springbatchdemo.repo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Classname UserService
 * @Description TODO
 * @Date 2020/9/30 0:11
 * @Created by kevin
 */
@Service
public class UserService {

    @Autowired
    private UserRepo userRepo;

    public List<UserDto> getAll(){

        List<UserDto> userDtos = userRepo.queryAllUsers();

        return userDtos;
    }
}
